cmake_minimum_required(VERSION 3.13)
project(redis_mmap CXX C)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)

set(SRC src)

include_directories(${SRC})

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR})

# 设置编译选项
add_compile_options(-ggdb -Wall)

file(GLOB_RECURSE SRC_LIST ${SRC}/*.c*)
add_executable(mmap ${SRC_LIST} ${SRC}/mmap.c)
